package com.amos.knife4j.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.servlet.http.HttpServletRequest;

public class AbstractController {
    protected final Logger log = LoggerFactory.getLogger(this.getClass());


    /**
     * 根据请求获取用户id
     *
     * @author meng_lbo
     * @date 2020/1/22  15:57
     */
    protected String getUserId(HttpServletRequest request) {
        return "";
    }

    /**
     * 获取token
     *
     * @author meng_lbo
     * @date 2020/8/5  9:40
     */
    protected String getToken(HttpServletRequest request) {
        // 获取token
        String token = "";

        return token;
    }
}
